package com.hue.gulimail.gulimailorder.feign;

import com.hue.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: 姚凤桥
 * @Date: 2021/12/25 15:16
 * @Description:
 */
@FeignClient("gulimail-member")
public interface MemberFeignService {
    /**
     * 获取用户信息
     *
     * @param id
     * @return
     */
    @RequestMapping("/gulimailmember/member/info/{id}")
    R memberInfo(@PathVariable("id") Long id);

    /**
     * 获取用户收货地址
     *
     * @param memberId
     * @return
     */
    @GetMapping("/gulimailmember/memberreceiveaddress/getByMemberId")
    R getByMemberId(@RequestParam("memberId") Long memberId);

    @RequestMapping("/gulimailmember/memberreceiveaddress/info/{id}")
    R addressInfo(@PathVariable("id") Long id);
}
